package com.xuecheng.Controller;

import com.xuecheng.entity.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "Hello Controller",description = "HelloController Api 接口文档",tags = "HelloController Api 接口文档--tags")
public interface HelloControllerApi {

    @ApiOperation("修改学员信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "学员的id值",required = true,paramType = "path",dataType = "String"),
            @ApiImplicitParam(name = "name",value = "学员的名称",required = true,paramType = "query",dataType = "String"),
    })
    Student mofidyStudentBynNum(@PathVariable("id") String id,
                                @RequestParam("name") String name,
                                @RequestBody Student student);
}